package com.beidouapp.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.beidouapp.dao.CityDao;
import com.beidouapp.domain.pojo.City;
import com.beidouapp.domain.pojo.Province;
import com.beidouapp.domain.pojo.Town;
import com.beidouapp.mapper.CityMapper;

@Repository
public class CityDaoImpl implements CityDao{

	@Autowired
	private CityMapper cityMapper;
	
	@Override
	public List<Province> findProvinceList(Map<String, Object> paramters) {
		return cityMapper.findProvinceList(paramters);
	}

	@Override
	public List<City> findCityList(Map<String, Object> paramters) {
		return cityMapper.findCityList(paramters);
	}

	@Override
	public List<Town> findTownList(Map<String, Object> paramters) {
		return cityMapper.findTownList(paramters);
	}

}
